package com.github.shiqiyue.app.api.sapi.req.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/***
 * 添加用户-请求参数
 * @author wenyao.wu
 */
@ApiModel
@Data
public class UserAddReq {

    /***
     * 用户名
     */
    @ApiModelProperty("用户名")
    @NotEmpty
    private String name;

    /***
     * 密码
     */
    @ApiModelProperty("密码")
    @NotNull
    private String password;

}
